package com.cn.byjk.service;

import com.cn.byjk.hystrixHandle.manageFalseHandle;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.math.BigDecimal;

/**
 * @author zhangdianzhi
 * @version v1.0
 * @description
 * @date 2022/1/10 11:05
 */
@Component
@FeignClient(name = "manage-Money-server" ,fallback = manageFalseHandle.class)
public interface ManageService {
    @GetMapping("/manage/getMoney/{userid}")
    public BigDecimal getMoney(@PathVariable("userid")Long userid);
}
